// 首页的接口请求
import axios from './axios'
// 获取商品分页数据

// 获取轮播图数据
export function bannerlist(data?:any){
    return axios({
        method:'get',
        url:'banner/list',
        params:data
    })
}
// 定义秒杀列表接口
export function seckilllist(data:{
    count:number,
    limitNum:number
}){
    return axios({
        method:'get',
        url:'/pro/seckilllist',
        params:data
    })
}
export function prolist(data:{
    count:number,
    limitNum:number
}){
    return axios({
        method:'get',
        url:'pro/list',
        params:data
    })
}

export function categorybrandlist(data:{
    category:string,
}){
    return axios({
        method:'get',
        url:'pro/categorybrandlist',
        params:data
    })
}

export function categorylist(data?:any){
    return axios({
        method:'get',
        url:'pro/categorylist',
        params:data
    })
}
